package com.wutma.friend.controller.user;

import com.wutma.common.core.controller.BaseController;
import com.wutma.common.core.domain.TableDataInfo;
import com.wutma.common.core.domain.dto.PageQueryDTO;
import com.wutma.friend.service.question.IUserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("user/message")
@RestController
public class UserMessageController extends BaseController {

    @Autowired
    private IUserMessageService userMessageService;

    /**
     * 获取用户消息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(PageQueryDTO pageQueryDTO) {
        return userMessageService.list(pageQueryDTO);
    }
}
